package com.ruoyi.basebill.mapper;

import java.util.List;
import com.ruoyi.basebill.domain.OmsSumstocktransferbill;
import com.ruoyi.basebill.domain.OmsSumstocktransferbillentry;

/**
 * 汇总库存调拨单Mapper接口
 * 
 * @author wenyixiong
 * @date 2023-02-18
 */
public interface OmsSumstocktransferbillMapper 
{
    /**
     * 查询汇总库存调拨单
     * 
     * @param id 汇总库存调拨单主键
     * @return 汇总库存调拨单
     */
    public OmsSumstocktransferbill selectOmsSumstocktransferbillById(Long id);

    /**
     * 查询汇总库存调拨单列表
     * 
     * @param omsSumstocktransferbill 汇总库存调拨单
     * @return 汇总库存调拨单集合
     */
    public List<OmsSumstocktransferbill> selectOmsSumstocktransferbillList(OmsSumstocktransferbill omsSumstocktransferbill);

    public List<OmsSumstocktransferbill> selectOmsSumstocktransferbillDetailList(OmsSumstocktransferbill omsSumstocktransferbill);


    /**
     * 新增汇总库存调拨单
     * 
     * @param omsSumstocktransferbill 汇总库存调拨单
     * @return 结果
     */
    public int insertOmsSumstocktransferbill(OmsSumstocktransferbill omsSumstocktransferbill);

    /**
     * 修改汇总库存调拨单
     * 
     * @param omsSumstocktransferbill 汇总库存调拨单
     * @return 结果
     */
    public int updateOmsSumstocktransferbill(OmsSumstocktransferbill omsSumstocktransferbill);

    /**
     * 删除汇总库存调拨单
     * 
     * @param id 汇总库存调拨单主键
     * @return 结果
     */
    public int deleteOmsSumstocktransferbillById(Long id);

    /**
     * 批量删除汇总库存调拨单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOmsSumstocktransferbillByIds(Long[] ids);

    /**
     * 批量删除汇总库存调拨单分录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOmsSumstocktransferbillentryByParentids(Long[] ids);
    
    /**
     * 批量新增汇总库存调拨单分录
     * 
     * @param omsSumstocktransferbillentryList 汇总库存调拨单分录列表
     * @return 结果
     */
    public int batchOmsSumstocktransferbillentry(List<OmsSumstocktransferbillentry> omsSumstocktransferbillentryList);
    

    /**
     * 通过汇总库存调拨单主键删除汇总库存调拨单分录信息
     * 
     * @param id 汇总库存调拨单ID
     * @return 结果
     */
    public int deleteOmsSumstocktransferbillentryByParentid(Long id);

    /**
     * 查询是否推送过EAS的汇总库存调拨单数据
     * @param isTrans
     * @return
     */
    public List<OmsSumstocktransferbill> selectPushEASSumStockTransferbillList(int isTrans);
}
